package com.yy.driver.pojo;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 驾驶员信息表(Driver)实体类
 *
 * @author yan yi
 * @since 2021-11-27 14:54:53
 */
@ApiModel(value = "Driver",description = "驾驶员信息表")
public class Driver implements Serializable {
    private static final long serialVersionUID = 936983121571618747L;
    /**
    * 驾驶员编号
    */
	@ApiModelProperty(name = "driverid",notes = "驾驶员编号",dataType = "Integer",required = true,example = "1")
    private Integer driverid;
    /**
    * 驾驶员姓名
    */
	@ApiModelProperty(name = "name",notes = "驾驶员姓名",dataType = "String",required = true)
    private String name;
    /**
    * 性别： 0 男 1 女
    */
	@ApiModelProperty(name = "sex",notes = "性别： 0 男 1 女",dataType = "Integer",required = true)
    private Integer sex;
    /**
    * 出生日期
    */
	@ApiModelProperty(name = "birth",notes = "出生日期",dataType = "Date",required = true)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birth;
    /**
    * 联系电话
    */
	@ApiModelProperty(name = "phone",notes = "联系电话",dataType = "String",required = true)
    private String phone;
    /**
    * 身份证号码
    */
	@ApiModelProperty(name = "idcard",notes = "身份证号码",dataType = "String",required = true)
    private String idcard;
    /**
    * 所属车队编号
    */
	@ApiModelProperty(name = "fkTeamid",notes = "所属车队编号",dataType = "Integer",required = true,example = "1")
    private Integer fkTeamid;
    /**
    * 工作状态:	1:承运中 2:空闲
    */
	@ApiModelProperty(name = "state",notes = "工作状态:	1:承运中 2:空闲",dataType = "Integer",required = true,example = "1")
    private Integer state;
    /**
    * 备注
    */
	@ApiModelProperty(name = "remark",notes = "备注",dataType = "String",required = true)
    private String remark;
    /**
    * 加入时间
    */
	@ApiModelProperty(name = "checkintime",notes = "加入时间",dataType = "Date",required = true)
    // 接收字符串日期，转换为date对象，前端必须传递 "2020-06-20"  这样的格式
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkintime;
    /**
    * 数据记录状态: 0:使用中	1:该记录已删除
    */
	@ApiModelProperty(name = "isdelete",notes = "数据记录状态: 0:使用中 1:该记录已删除",dataType = "Integer",required = true,example = "1")
    private Integer isdelete;
    /**
    * 修改时间
    */
	@ApiModelProperty(name = "altertime",notes = "修改时间",dataType = "Date",required = true)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date altertime;

        
    public Integer getDriverid() {
        return driverid;
    }

    public void setDriverid(Integer driverid) {
        this.driverid = driverid;
    }
        
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
        
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
        
    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
        
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
        
    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }
        
    public Integer getFkTeamid() {
        return fkTeamid;
    }

    public void setFkTeamid(Integer fkTeamid) {
        this.fkTeamid = fkTeamid;
    }
        
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
        
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
        
    public Date getCheckintime() {
        return checkintime;
    }

    public void setCheckintime(Date checkintime) {
        this.checkintime = checkintime;
    }
        
    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }
        
    public Date getAltertime() {
        return altertime;
    }

    public void setAltertime(Date altertime) {
        this.altertime = altertime;
    }

}